<template>
	<view>
		个人中心
		<button @tap="toIndex">跳到首页面</button>
		<view>{{app.count}}</view>
		<button @tap="add">+1</button>
	</view>
</template>

<script setup>
	import {useStore} from "vuex"
	const store = useStore();
	const {app} = store.state;
	
	const add = ()=>{
		store.commit("app/addCount",2)
	}
	
	const toIndex = ()=>{
		// wx.navigateTo({
		// 	url:"/pages/index/index"
		// })
		uni.navigateTo({
			url:"/pages/index/index?id=123456"
		})
	}
</script>

<style>

</style>
